﻿using Game.Combat.Damage;
using UnityEngine;

namespace Game.Combat {
    public class LifeDisplay : MonoBehaviour,IDamageable {
        protected ABSLife mLife;

        public void Init(ABSLife life) {
            mLife = life;
            onInit();
        }

        public void AddDamage(in DamageParam param) {
            DamageSystem.Execute(mLife, param);
        }

        protected virtual void onInit() {
            
        }
    }
}